
package dieci.system;

import dieci.database.PersistentObject;
import dieci.utils.Redondeo;

/**
 *
 * @author DuckSys
 */
public class RawMaterialProduct implements PersistentObject{

    private Product product;
    private RawMaterial rawMaterial;
    private float amount;

    public RawMaterialProduct(Product product, RawMaterial rawMaterial, float amount)
    {
        this.product = product;
        this.rawMaterial = rawMaterial;
        this.amount = Redondeo.Redondear(amount,2);
    }

    public float getAmount()
    {
        return amount;
    }

    public void setAmount(float amount)
    {
        this.amount = Redondeo.Redondear(amount,2);;
    }

    
    public Product getProduct()
    {
        return product;
    }

    public void setProduct(Product product)
    {
        this.product = product;
    }

    public RawMaterial getRawMaterial()
    {
        return rawMaterial;
    }

    public void setRawMaterial(RawMaterial rawMaterial)
    {
        this.rawMaterial = rawMaterial;
    }
    
    

}
